
<?php
$sortnum2=$GLOBALS['smarty']->_var['sortnum2'];
if($sortnum2=='')
{
 $sortnum2==0;
}
$sortnum2=$sortnum2+1;
$GLOBALS['smarty']->assign('sortnum2',$sortnum2);

$catid=$GLOBALS['smarty']->_var['articles_cat']['id'];
$GLOBALS['smarty']->assign('get_class_articles', get_class_articles($catid,4));
?>

<ul class="clearfix <?php if ($this->_var['sortnum2'] == 1): ?>on<?php endif; ?>">
<?php $_from = $this->_var['get_class_articles']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'article');$this->_foreach['article'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['article']['total'] > 0):
    foreach ($_from AS $this->_var['article']):
        $this->_foreach['article']['iteration']++;
?> 
<li>&bull; <a href="<?php echo $this->_var['article']['url']; ?>" target="_blank" title="<?php echo $this->_var['article']['title']; ?>"><?php echo $this->_var['article']['title']; ?></a></li>
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>

</ul>